export default [{
  path: "/front",
  name: "头部",
  component: resolve => require(["@/pages/front/Front.vue"], resolve),
  children: [{
      path: 'index',
      name: '首页',
      meta: {
        menu: 0
      },
      component: resolve => require(['@/pages/front/Index.vue'], resolve)
    },
    {
      path: "/front/warehouseList",
      name: "仓库列表",
      meta: {
        menu: 1
      },
      component: resolve => require(["@/pages/front/WarehouseList.vue"], resolve)
    },
    {
      path: "/front/warehouseDetail/:guid",
      name: "仓库详情",
      meta: {
        menu: 1
      },
      component: resolve => require(["@/pages/front/WarehouseDetail.vue"], resolve)
    },
    {
      path: "/front/demandList",
      name: "需求列表",
      meta: {
        menu: 2
      },
      component: resolve => require(["@/pages/front/DemandList.vue"], resolve)
    },
    {
      path: "/front/demandDetail/:guid",
      name: "需求详情",
      meta: {
        menu: 2
      },
      component: resolve => require(["@/pages/front/DemandDetail.vue"], resolve)
    },
    {
      path: "/front/newsList",
      name: "资讯列表",
      meta: {
        menu: 3
      },
      component: resolve => require(["@/pages/front/NewsList.vue"], resolve)
    },
    {
      path: "/front/newsDetail/:guid",
      name: "资讯详情",
      meta: {
        menu: 3
      },
      component: resolve => require(["@/pages/front/NewsDetail.vue"], resolve)
    },
    {
      path: "/front/warehouseEditList",
      name: "仓库编辑列表",
      meta: {
        menu: 1,
        rights: ['6'],
        requiresAuth: true
      },
      component: resolve => require(["@/pages/front/WarehouseEditList.vue"], resolve)
    },
    {
      path: "/front/warehouseEditDetail/:falg/:guid",
      name: "仓库编辑详情",
      meta: {
        menu: 1,
        rights: ['6'],
        requiresAuth: true
      },
      component: resolve => require(["@/pages/front/WarehouseEditDetail.vue"], resolve)
    },
    {
      path: "/front/demandEditList",
      name: "需求编辑列表",
      meta: {
        menu: 2,
        rights: ['1'],
        requiresAuth: true
      },
      component: resolve => require(["@/pages/front/DemandEditList.vue"], resolve)
    },
    {
      path: "/front/demandEditDetail/:falg/:guid",
      name: "需求编辑详情",
      meta: {
        menu: 2,
        rights: ['1'],
        requiresAuth: true
      },
      component: resolve => require(["@/pages/front/DemandEditDetail.vue"], resolve)
    },
  ]
}];
